﻿using System;

namespace ParsingProject {

    /// <summary>
    /// Class to represent an action and it's value.
    /// <list type="bullet">
    /// <item>
    /// <term>Authors:</term>
    /// <description>David I. Schwartz</description>
    /// <description>Sela Davis</description>
    /// </item>
    /// </list>
    /// </summary>
    public class MotionPair {

        private string motion;  // what's the kind of motion?
        private int amount;     // what value does it have?

        /// <summary>
        /// Access the motion label.
        /// </summary>
        public string Motion {
            get { return motion; }
            set { motion = value; }
        }

        /// <summary>
        /// Access the motion value.
        /// </summary>
        public int Amount {
            get { return amount; }
            set { amount = value; }
        }

        /// <summary>
        /// Make a Motion object.
        /// </summary>
        /// <param name="m">label for motion</param>
        /// <param name="a">value for motion</param>
        public MotionPair(string m, int a) {
            motion = m;
            amount = a;
        }

    } // class MotionPair

} // namespace MotionPair
